using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace FpFrame
{
    public partial class UIEventType
    {
        public string Name { get; private set; }

        public UIEventType(string name)
        {
            Name = name;
        }
        public override string ToString() => Name;
      
        //Test
        public static readonly UIEventType ReturnHome = new UIEventType("ReturnHome");
     
    }
    
    public struct UIEvent : IEvent
    {
        public UIEventType Type;
        public object Data;

        public UIEvent(UIEventType type, object data = null)
        {
            Type = type;
            Data = data;
        }
    }
}